package demo.demo05.test04;

//所有的类都默认继承Object
public class Person {
    public Person() {
        super();
        System.out.println("person无参构造器");
    }

    public void say() {
        System.out.println("说了一句话！");
    }

    protected String name = "zyh";

    public void print() {
        System.out.println("person");
    }

}

